// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import App from './App';
import router from './router';
import VueRouter from 'vue-router'
import Vuex from 'vuex'
import Axios from 'axios'
import layer from 'vue-layer'
import 'amazeui/dist/css/amazeui.css';
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import VueCookies from 'vue-cookies'
import VueKindEditor from 'vue-kindeditor'
import 'kindeditor/kindeditor-all-min.js'
import 'kindeditor/themes/default/default.css'
import echarts from 'echarts'

// import Vux from 'vux'
// Vue.use(Vux);
Vue.use(VueCookies)

Vue.use(VueRouter)

Vue.use(Vuex);

Vue.use(ElementUI)

Vue.use(VueKindEditor)

// var $echarts = require('echarts');

Vue.prototype.$axios = Axios

// Vue.prototype.$layer = layer(Vue);

// Vue.config.productionTip = false;

const mutations = {

};
const actions = {

};

const state = {};

const store = new Vuex.Store({
  state: {
    aesKey: 'beikangayi@#$&*,',
    aesIv: 'RandomInitVector',
  },
  actions,
  mutations,
  user: {}
});

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App },
});
